package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.OrdersDto;
import com.itheima.reggie.pojo.Orders;

import java.util.List;

public interface OrdersService extends IService<Orders> {

    /**
     * 下单
     *
     * @param orders
     */
    void submit(Orders orders);

    /**
     * 分页查询历史订单
     *
     * @param page
     * @param pageSize
     * @return
     */
    Page<OrdersDto> userPage(Integer page, Integer pageSize);
}
